From c3a1999b281cf3acbe59c460dee0a237608a7e10 Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Mon, 28 Jul 2003 13:22:08 +0000 Subject: [PATCH] bitkeeper revision 1.377 (3f252380ka2fzGVniRJMLfuL8QIUpg) hypervisor-if.h: Fix a macro. --- xen/include/hypervisor-ifs/hypervisor-if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/hypervisor-ifs/hypervisor-if.h b/xen/include/hypervisor-ifs/hypervisor-if.h index adedd40607..64c5bc040a 100644 --- a/xen/include/hypervisor-ifs/hypervisor-if.h +++ b/xen/include/hypervisor-ifs/hypervisor-if.h @@ -149,7 +149,7 @@ #define TI_GET_DPL(_ti) ((_ti)->flags & 3) #define TI_GET_IF(_ti) ((_ti)->flags & 4) #define TI_SET_DPL(_ti,_dpl) ((_ti)->flags |= (_dpl)) -#define TI_SET_IF(_ti,_if) ((_ti)->flags |= (_if)) +#define TI_SET_IF(_ti,_if) ((_ti)->flags |= ((!!(_if))<<2)) typedef struct trap_info_st { unsigned char vector; /* exception vector */ -- 2.30.2